<template>
    <div>
        <ul>
            <li v-for="i in list" :key="i.id">
                <router-link :to="{'name':'createtask',query:{id:i.id}}">{{i.name}}</router-link>
            </li>
        </ul>
    </div>
</template>

<script>
import maxios from '../http/axios'
export default {
    data() {
        return {
            list:[],
        }
    },
    methods: {
        getlist(){
            maxios('worklist','get').then(res => {
                this.list = res.list
            })
        },
    },
    created() {
        this.getlist()
    }
}
</script>

<style scoped>

</style>